#pragma once

#include "board.h"
#include "move.h"
#include "moves.h"
#include "moveGenerator.h"

class AI {
public:
	int weights[6];

	AI(int maxSearchDepth);
	~AI();
	Move ChooseMove(CheckerColor Player, Board board);
	int minmax(int depth, CheckerColor player, Board board, int a, int b);
private:
	MoveGenerator* mg;
	Moves* moves;
	int maxDepth;

	int MaxCaptures(Moves* aMoves);
	int EvaluateMove(Board board, Moves* moves, int i);
	int EvaluateEndGame(int winner);
	
};